﻿@{
    Layout = null;
}


<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
    <title>
        SDMS智能水电查询系统
    </title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="//cdn.staticfile.org/layui/2.8.10/css/layui.css" rel="stylesheet">
</head>
<body>
<div class="layui-layout layui-layout-admin">

  <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">登录人：@ViewBag.Buiding.BuidingName # @ViewBag.Buiding.HomeNumbe</div>
  </div>

  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">水电查询</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">用水记录</a></dd>
            <dd><a href="javascript:;">用电记录</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">水电充值</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">充值</a></dd>
            <dd><a href="javascript:;">充值记录</a></dd>
          </dl>
        </li>
      </ul>
    </div>
  </div>


    <div class="layui-body">
            <table class="layui-table" lay-even="" lay-skin="nob">
                <colgroup>
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                    <tr>
                        <th>宿舍楼</th>
                        <th>宿舍号</th>
                        <th>剩余水量(吨)</th>
                        <th>剩余电量(度)</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>@ViewBag.Buiding.BuidingName</td>
                        <td>@ViewBag.Buiding.HomeNumbe</td>
                        <td>@ViewBag.Buiding.WaterBalance (吨)</td>
                        <td>@ViewBag.Buiding.ElectricityBalance (度)</td>
                    </tr>
                </tbody>
            </table>

    </div>
</div>

<script src="/static/layui/layui.js"></script>
<script>
//JS 
layui.use(['element', 'layer', 'util'], function(){
    var element = layui.element;
    var layer = layui.layer;
    var util = layui.util;
    var $ = layui.$;

    // 跳转到用水记录页面
    $('#waterRecord').click(function () {
            window.location.href = "/Home/WaterRecord";
        });
  

});
</script>
</body>
</html>